Element.GetValidTypes
Description:
Obtains a set of types that are valid for all given elements.
Obtains a set of types that are valid for all given elements.
Overloads (2):
-
documentThe document.
-
elementIdsA collection of element IDs.
Return Value
ICollection<ElementId>
A set of element IDs of types that are valid for these elements or an empty set if any element cannot have a type assigned.
-
Thrown when at least one of the elements does not exist in the document.
-
A non-optional argument was null